Page({
  data:{
    houseItemInfo:{},
    houseId:""
  },
  editHouse() {
    wx.navigateTo({
      url: `/house_pkg/pages/form/index?houseId=${this.data.houseId}`,
    })
  },
  onLoad(ev){
    // houseId=7076664450215936
    this.setData({
      houseId:ev.houseId
    })

    this.getHouseItemInfo()
  },
  async getHouseItemInfo(){
    const res =  await wx.myRequest.get(`/room/${this.data.houseId}`)
    this.setData({
      houseItemInfo:res.data
    })
  }
})
